var data = require("../index/new.js");
Page({
  data: {
    imgUrls: [
      {
        link:'/pages/task/task',
        url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big84000.jpg',
      },
      {
        link:'../task/task',
        url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big84001.jpg',
      },
      {
        link:'../task/task',
        url: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big39000.jpg',
      }
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 3000,
    duration: 1000,
    txtlist: [
      '这是第一条公告内容',
      '小程序上下滚动效果总结',
      '这是一行上下滚动的文字，文字最好短点，超过一行省略'
    ],
    news:[]
  },
  onLoad: function (options) {
    this.setData({
      news:data
    })
  },
  detailsHandler(event){
    var currentId = event.currentTarget.dataset.newsid;
    wx.navigateTo({
      url: '../index/news-details/news-details?id='+currentId,
    })
  }
})
